Part Number Hot Search : 
HA502 AD5684 SMA473 BFG92AX ACHIP FP2800A AX6308 L20PF
Product Description
Full Text Search
 

To Download Q67121-C848 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet 09.94 mi c r o c omp u ter compone n t s s a b 80c 1 6 6 / 83c 1 66 1 6 -bit cmos single-chip microcontroller
semiconductor group 1 09.94 l high performance 16-bit cpu with 4-stage pipeline l 100 ns instruction cycle time at 20 mhz cpu clock l 500 ns multiplication (16 16 bit), 1 m s division (32 / 16 bit) l enhanced boolean bit manipulation facilities l register-based design with multiple variable register banks l single-cycle context switching support l up to 256 kbytes linear address space for code and data l 1 kbyte on-chip ram l 32 kbytes on-chip rom (sab 83c166 only) l programmable external bus characteristics for different address ranges l 8-bit or 16-bit external data bus l multiplexed or demultiplexed external address/data buses l hold and hold-acknowledge bus arbitration support l 512 bytes on-chip special function register area l idle and power down modes l 8-channel interrupt-driven single-cycle data transfer facilities via peripheral event controller (pec) l 16-priority-level interrupt system l 10-channel 10-bit a/d converter with 9.7 m s conversion time l 16-channel capture/compare unit l two multi-functional general purpose timer units with 5 timers l two serial channels (usarts) l programmable watchdog timer l up to 76 general purpose i/o lines l supported by a wealth of development tools like c-compilers, macro-assembler packages, emulators, evaluation boards, hll-debuggers, simulators, logic analyzer disassemblers, programming boards l on-chip bootstrap loader l 100-pin plastic mqfp package (eiaj) c16x-family of high-performance cmos 16-bit microcontrollers preliminary sab 80c166/83c166 16-bit microcontroller sab 80c166/83c166
sab 80c166/83c166 semiconductor group 2 introduction the sab 80c166 is the first representative of the siemens sab 80c166 family of full featured single-chip cmos microcontrollers. it combines high cpu performance (up to 10 million instructions per second) with high peripheral functionality and enhanced io-capabilities. figure 1 logic symbol ordering information note: the ordering codes (q67120-d...) for the mask-rom versions are defined for each product after verification of the respective rom code. type ordering code package function sab 83c166-5m q67121-d... p-mqfp-100-2 16-bit microcontroller, 0 ?c to +70 ?c, 1 kbyte ram and 32 kbyte rom sab 83c166-5m-t3 q67121-d... p-mqfp-100-2 16-bit microcontroller, -40 ?c to +85 ?c, 1 kbyte ram and 32 kbyte rom sab 80c166-m Q67121-C848 p-mqfp-100-2 16-bit microcontroller, 0 ?c to +70 ?c 1 kbyte ram sab 80c166-m-t3 q67121-c900 p-mqfp-100-2 16-bit microcontroller, -40 ?c to +85 ?c 1 kbyte ram sab 80c166
sab 80c166/83c166 semiconductor group 3 pin configuration rectangular p-mqfp-100-2 (top view) figure 2 sab 80c166
sab 80c166/83c166 semiconductor group 4 pin definitions and functions symbol pin number input output function p4.0 p4.1 16-17 16 17 i/o o o port 4 is a 2-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. in case of an external bus configuration, port 4 can be used to output the segment address lines: p4.0 a16 least significant segment addr. line p4.1 a17 most significant segment addr. line xtal1 xtal2 20 19 i o xtal1: input to the oscillator amplifier and input to the internal clock generator xtal2: output of the oscillator amplifier circuit. to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. busact , ebc1, ebc0 22 23 24 i i i external bus configuration selection inputs. these pins are sampled during reset and select either the single chip mode or one of the four external bus configurations: busact ebc1 ebc0 mode/bus configuration 0 0 0 8-bit demultiplexed bus 0 0 1 8-bit multiplexed bus 0 1 0 16-bit multiplexed bus 0 1 1 16-bit demultiplexed bus 1 0 0 single chip mode 1 0 1 reserved. 1 1 0 reserved. 1 1 1 reserved. romless versions must have pin busact tied to ?? rstin 27 i reset input with schmitt-trigger characteristics. a low level at this pin for a specified duration while the oscillator is running resets the sab 80c166. an internal pullup resistor permits power-on reset using only a capacitor connected to v ss . rstout 28 o internal reset indication output. this pin is set to a low level when the part is executing either a hardware-, a software- or a watchdog timer reset. rstout remains low until the einit (end of initialization) instruction is executed.
sab 80c166/83c166 semiconductor group 5 nmi 29 i non-maskable interrupt input. a high to low transition at this pin causes the cpu to vector to the nmi trap routine. when the pwrdn (power down) instruction is executed, pin nmi must be low in order to force the sab 80c166 to go into power down mode. if nmi is high, when pwrdn is executed, the part will continue to run in normal mode. if not used, pull nmi high externally. ale 25 o address latch enable output. can be used for latching the address into external memory or an address latch in the multiplexed bus modes. rd 26 o external memory read strobe. rd is activated for every external instruction or data read access. p1.0 p1.15 30-37 40-47 i/o port 1 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. port 1 is used as the 16-bit address bus (a) in demultiplexed bus modes and also after switching from a demultiplexed bus mode to a multiplexed bus mode. p5.0 p5.9 48-53 56-59 i i port 5 is a 10-bit input-only port with schmitt-trigger characteristics. the pins of port 5 also serve as the (up to 10) analog input channels for the a/d converter, where p5.x equals anx (analog input channel x). p2.0 p2.15 62-77 62 75 76 77 i/o i/o i/o o i/o o i/o i port 2 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. the following port 2 pins also serve for alternate functions: p2.0 cc0io capcom: cc0 cap.-in/comp.out ... ... ... p2.13 cc13io capcom: cc13 cap.-in/comp.out, breq external bus request output p2.14 cc14io capcom: cc14 cap.-in/comp.out, hlda external bus hold acknowl. output p2.15 cc15io capcom: cc15 cap.-in/comp.out, hold external bus hold request input pin definitions and functions (cont?) symbol pin number input output function
sab 80c166/83c166 semiconductor group 6 p3.0 p3.15 80-92, 95-97 80 81 82 83 84 85 86 87 88 89 90 91 92 95 96 97 i/o i/o i o i o i i i i o i/o o i/o o o i o port 3 is a 16-bit bidirectional i/o port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. the following port 3 pins also serve for alternate functions: p3.0 t0in capcom timer t0 count input p3.1 t6out gpt2 timer t6 toggle latch output p3.2 capin gpt2 register caprel capture input p3.3 t3out gpt1 timer t3 toggle latch output p3.4 t3eud gpt1 timer t3 ext.up/down ctrl.input p3.5 t4in gpt1 timer t4 input for count/gate/reload/capture p3.6 t3in gpt1 timer t3 count/gate input p3.7 t2in gpt1 timer t2 input for count/gate/reload/capture p3.8 txd1 asc1 clock/data output (asyn./syn.) p3.9 rxd1 asc1 data input (asyn.) or i/o (syn.) p3.10 t d0 asc0 clock/data output (asyn./syn.) p3.11 r d0 asc0 data input (asyn.) or i/o (syn.) p3.12 bhe ext. memory high byte enable signal p3.13 wr external memory write strobe p3.14 ready ready signal input p3.15 clkout system clock output (=cpu clock) p0.0 p0.15 98 ?5 8 ?15 i/o port 0 is a 16-bit bidirectional io port. it is bit-wise programmable for input or output via direction bits. for a pin configured as input, the output driver is put into high-impedance state. in case of an external bus configuration, port 0 serves as the address (a) and address/data (ad) bus in multiplexed bus modes and as the data (d) bus in demultiplexed bus modes. demultiplexed bus modes: data path width: 8-bit 16-bit p0.0 ?p0.7: d0 ?d7 d0 - d7 p0.8 ?p0.15: output! d8 - d15 multiplexed bus modes: data path width: 8-bit 16-bit p0.0 ?p0.7: ad0 ?ad7 ad0 - ad7 p0.8 ?p0.15: a8 - a15 ad8 - ad15 v aref 54 - reference voltage for the a/d converter. v agnd 55 - reference ground for the a/d converter. pin definitions and functions (cont?) symbol pin number input output function
sab 80c166/83c166 semiconductor group 7 v cc 7, 18, 38, 61, 79, 93 - digital supply voltage: + 5 v during normal operation and idle mode. 3 2.5 v during power down mode v ss 6, 21, 39, 60, 78, 94 - digital ground. pin definitions and functions (cont?) symbol pin number input output function
sab 80c166/83c166 semiconductor group 8 functional description the architecture of the sab 80c166 combines advantages of both risc and cisc processors and of advanced peripheral subsystems in a very well-balanced way. the following block diagram gives an overview of the different on-chip components and of the advanced, high bandwidth internal bus structure of the sab 80c166. note : all time specifications refer to a cpu clock of 20 mhz (see definition in the ac characteristics section). figure 3 block diagram
sab 80c166/83c166 semiconductor group 9 memory organization the memory space of the sab 80c166 is configured in a von neumann architecture which means that code memory, data memory, registers and i/o ports are organized within the same linear address space which includes 256 kbytes. address space expansion to 16 mbytes is provided for future versions. the entire memory space can be accessed bytewise or wordwise. particular portions of the on-chip memory have additionally been made directly bit addressable. the sab 83c166 contains 32 kbytes of on-chip mask-programmable rom for code or constant data. the rom can be mapped to either segment 0 or segment 1. 1 kbyte of on-chip ram is provided as a storage for user defined variables, for the system stack, general purpose register banks and even for code. a register bank can consist of up to 16 wordwide (r0 to r15) and/or bytewide (rl0, rh0, ? rl7, rh7) so-called general purpose registers (gprs). 512 bytes of the address space are reserved for the special function register area. sfrs are wordwide registers which are used for controlling and monitoring functions of the different on-chip units. 98 sfrs are currently implemented. unused sfr addresses are reserved for future members of the sab 80c166 family. in order to meet the needs of designs where more memory is required than is provided on chip, up to 256 kbytes of external ram and/or rom can be connected to the microcontroller. external bus controller all of the external memory accesses are performed by a particular on-chip external bus controller (ebc). it can be programmed either to single chip mode when no external memory is required, or to one of four different external memory access modes, which are as follows: ?16-/18-bit addresses, 16-bit data, demultiplexed ?16-/18-bit addresses, 16-bit data, multiplexed ?16-/18-bit addresses, 8-bit data, multiplexed ?16-/18-bit addresses, 8-bit data, demultiplexed in the demultiplexed bus modes, addresses are output on port 1 and data is input/output on port 0. in the multiplexed bus modes both addresses and data use port 0 for input/output. important timing characteristics of the external bus interface (memory cycle time, memory tri- state time, read/write delay and length of ale, i.e. address setup/hold time with respect to ale) have been made programmable to allow the user the adaption of a wide range of different types of memories. in addition, different address ranges may be accessed with different bus characteristics. access to very slow memories is supported via a particular ?eady?function. a hold /hlda protocol is available for bus arbitration. for applications which require less than 64 kbytes of external memory space, a non-segmented memory model can be selected. in this case all memory locations can be addressed by 16 bits and port 4 is not required to output the additional segment address lines.
sab 80c166/83c166 semiconductor group 10 central processing unit (cpu) the main core of the cpu consists of a 4-stage instruction pipeline, a 16-bit arithmetic and logic unit (alu) and dedicated sfrs. additional hardware has been spent for a separate multiply and divide unit, a bit-mask generator and a barrel shifter. based on these hardware provisions, most of the sab 80c166? instructions can be executed in just one machine cycle which requires 100 ns at 20-mhz cpu clock. for example, shift and rotate instructions are always processed during one machine cycle independent of the number of bits to be shifted. all multiple-cycle instructions have been optimized so that they can be executed very fast as well: branches in 2 cycles, a 16 16 bit multiplication in 5 cycles and a 32-/16 bit division in 10 cycles. another pipeline optimization, the so-called ?ump cache? allows reducing the execution time of repeatedly performed jumps in a loop from 2 cycles to 1 cycle. the cpu disposes of an actual register context consisting of up to 16 wordwide gprs which are physically allocated within the on-chip ram area. a context pointer (cp) register determines the base address of the active register bank to be accessed by the cpu at a time. the number of register banks is only restricted by the available internal ram space. for easy parameter passing, a register bank may overlap others. figure 4 cpu block diagram 32 kbyte in the sab 83c166 1 kbyte
sab 80c166/83c166 semiconductor group 11 a system stack of up to 512 bytes is provided as a storage for temporary data. the system stack is allocated in the on-chip ram area, and it is accessed by the cpu via the stack pointer (sp) register. two separate sfrs, stkov and stkun, are implicitly compared against the stack pointer value upon each stack access for the detection of a stack overflow or underflow. the high performance offered by the hardware implementation of the cpu can efficiently be utilized by a programmer via the highly efficient sab 80c166 instruction set which includes the following instruction classes: arithmetic instructions logical instructions boolean bit manipulation instructions compare and loop control instructions shift and rotate instructions prioritize instruction data movement instructions system stack instructions jump and call instructions return instructions system control instructions miscellaneous instructions the basic instruction length is either 2 or 4 bytes. possible operand types are bits, bytes and words. a variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
sab 80c166/83c166 semiconductor group 12 interrupt system with an interrupt response time within a range from just 250 ns to 600 ns (in case of internal program execution), the sab 80c166 is capable of reacting very fast to the occurrence of non- deterministic events. the architecture of the sab 80c166 supports several mechanisms for fast and flexible response to service requests that can be generated from various sources internal or external to the microcontroller. any of these interrupt requests can be programmed to being serviced by the interrupt controller or by the peripheral event controller (pec). in contrast to a standard interrupt service where the current program execution is suspended and a branch to the interrupt vector table is performed, just one cycle is ?tolen?from the current cpu activity to perform a pec service. a pec service implies a single byte or word data transfer between any two memory locations with an additional increment of either the pec source or the destination pointer. an individual pec transfer counter is implicity decremented for each pec service except when performing in the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. pec services are very well suited, for example, for supporting the transmission or reception of blocks of data, or for transferring a/d converted results to a memory table. the sab 80c166 has 8 pec channels each of which offers such fast interrupt-driven data transfer capabilities. a separate control register which contains an interrupt request flag, an interrupt enable flag and an interrupt priority bitfield exists for each of the possible interrupt sources. via its related register, each source can be programmed to one of sixteen interrupt priority levels. once having been accepted by the cpu, an interrupt service can only be interrupted by a higher prioritized service request. for the standard interrupt processing, each of the possible interrupt sources has a dedicated vector location. software interrupts are supported by means of the ?rap?instruction in combination with an individual trap (interrupt) number. the following table shows all of the possible sab 80c166 interrupt sources and the corresponding hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers:
sab 80c166/83c166 semiconductor group 13 source of interrupt or pec service request request flag enable flag interrupt vector vector location trap number capcom register 0 cc0ir cc0ie cc0int 40 h 10 h capcom register 1 cc1ir cc1ie cc1int 44 h 11 h capcom register 2 cc2ir cc2ie cc2int 48 h 12 h capcom register 3 cc3ir cc3ie cc3int 4c h 13 h capcom register 4 cc4ir cc4ie cc4int 50 h 14 h capcom register 5 cc5ir cc5ie cc5int 54 h 15 h capcom register 6 cc6ir cc6ie cc6int 58 h 16 h capcom register 7 cc7ir cc7ie cc7int 5c h 17 h capcom register 8 cc8ir cc8ie cc8int 60 h 18 h capcom register 9 cc9ir cc9ie cc9int 64 h 19 h capcom register 10 cc10ir cc10ie cc10int 68 h 1a h capcom register 11 cc11ir cc11ie cc11int 6c h 1b h capcom register 12 cc12ir cc12ie cc12int 70 h 1c h capcom register 13 cc13ir cc13ie cc13int 74 h 1d h capcom register 14 cc14ir cc14ie cc14int 78 h 1e h capcom register 15 cc15ir cc15ie cc15int 7c h 1f h capcom timer 0 t0ir t0ie t0int 80 h 20 h capcom timer 1 t1ir t1ie t1int 84 h 21 h gpt1 timer 2 t2ir t2ie t2int 88 h 22 h gpt1 timer 3 t3ir t3ie t3int 8c h 23 h gpt1 timer 4 t4ir t4ie t4int 90 h 24 h gpt2 timer 5 t5ir t5ie t5int 94 h 25 h gpt2 timer 6 t6ir t6ie t6int 98 h 26 h gpt2 caprel register crir crie crint 9c h 27 h a/d conversion complete adcir adcie adcint a0 h 28 h a/d overrun error adeir adeie adeint a4 h 29 h asc0 transmit s0tir s0tie s0tint a8 h 2a h asc0 receive s0rir s0rie s0rint ac h 2b h asc0 error s0eir s0eie s0eint b0 h 2c h asc1 transmit s1tir s1tie s1tint b4 h 2d h asc1 receive s1rir s1rie s1rint b8 h 2e h asc1 error s1eir s1eie s1eint bc h 2f h
sab 80c166/83c166 semiconductor group 14 the sab 80c166 also provides an excellent mechanism to identify and to process exceptions or error conditions that arise during run-time, so-called ?ardware traps? hardware traps cause immediate non-maskable system reaction which is similar to a standard interrupt service (branching to a dedicated vector table location). the occurrence of a hardware trap is additionally signified by an individual bit in the trap flag register (tfr). except when another higher prioritized trap service is in progress, a hardware trap will interrupt any actual program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts. the following table shows all of the possible exceptions or error conditions that can arise during run- time: exception condition trap flag trap vector vector location trap number trap priority reset functions: hardware reset software reset watchdog timer overflow reset reset reset 0000 h 0000 h 0000 h 00 h 00 h 00 h iii iii iii class a hardware traps: non-maskable interrupt stack overflow stack underflow nmi stkof stkuf nmitrap stotrap stutrap 0008 h 0010 h 0018 h 02 h 04 h 06 h ii ii ii class b hardware traps: undefined opcode protected instruction fault illegal word operand access illegal instruction access illegal external bus access undopc prtflt illopa illina illbus btrap btrap btrap btrap btrap 0028 h 0028 h 0028 h 0028 h 0028 h 0a h 0a h 0a h 0a h 0a h i i i i i reserved [002c h ? 003c h ] [0b h ?0f h ] software traps trap instruction any [0000 h ? 01fc h ] in steps of 04 h any [00 h ?7f h ] current cpu priority
sab 80c166/83c166 semiconductor group 15 capture/compare (capcom) unit the capcom unit supports generation and control of timing sequences on up to 16 channels with a maximum resolution of 400 ns (@ 20 mhz cpu clock). the capcom unit is typically used to handle high speed i/o tasks such as pulse and waveform generation, pulse width modulation (pmw), digital to analog (d/a) conversion, software timing, or time recording relative to external events. two 16-bit timers (t0/t1) with reload registers provide two independent time bases for the capture/ compare register array. the input clock for the timers is programmable to several prescaled values of the cpu clock, or may be derived from an overflow/underflow of timer t6 in module gpt2. this provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specific requirements. in addition, an external count input for capcom timer t0 allows event scheduling for the capture/compare registers relative to external events. the capture/compare register array contains 16 dual purpose capture/compare registers, each of which may be individually allocated to either capcom timer t0 or t1, and programmed for capture or compare function. each register has one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurrence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (captured) into the capture/compare register in response to an external event at the port pin which is associated with this register. in addition, a specific interrupt request for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. when a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the selected compare mode. compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set ??on match; pin reset ??on compare time overflow; only one compare event per timer period is generated double register mode two registers operate on one pin; pin toggles on each compare match; several compare events per timer period are possible.
sab 80c166/83c166 semiconductor group 16 figure 5 capcom unit block diagram x = 0 y = 1
sab 80c166/83c166 semiconductor group 17 general purpose timer (gpt) unit the gpt unit represents a very flexible multifunctional timer/counter structure which may be used for many different time related tasks such as event timing and counting, pulse width and duty cycle measurements, pulse generation, or pulse multiplication. the gpt unit incorporates five 16-bit timers which are organized in two separate modules, gpt1 and gpt2. each timer in each module may operate independently in a number of different modes, or may be concatenated with another timer of the same module. each of the three timers t2, t3, t4 of module gpt1 can be configured individually for one of three basic modes of operation, which are timer, gated timer, and counter mode. in timer mode, the input clock for a timer is derived from the cpu clock, divided by a programmable prescaler, while counter mode allows a timer to be clocked in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode, where the operation of a timer is controlled by the ?ate?level on an external input pin. for these purposes, each timer has one associated port pin (txin) which serves as gate or clock input. the maximum resolution of the timers in module gpt1 is 400 ns (@ 20 mhz cpu clock). figure 6 block diagram of gpt1
sab 80c166/83c166 semiconductor group 18 the count direction (up/down) for each timer is programmable by software. for timer t3 the count direction may additionally be altered dynamically by an external signal on a port pin (t3eud) to facilitate e. g. position tracking. timer t3 has an output toggle latch (t3otl) which changes its state on each timer over-flow/ underflow. the state of this latch may be output on a port pin (t3out) e. g. for timeout monitoring of external hardware components, or may be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. in addition to their basic operating modes, timers t2 and t4 may be configured as reload or capture registers for timer t3. when used as capture or reload registers, timers t2 and t4 are stopped. the contents of timer t3 is captured into t2 or t4 in response to a signal at their associated input pins (txin). timer t3 is reloaded with the contents of t2 or t4 triggered either by an external signal or by a selectable state transition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be constantly generated without software intervention. figure 7 block diagram of gpt2
sab 80c166/83c166 semiconductor group 19 with its maximum resolution of 200 ns (@ 20 mhz), the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both timers can be clocked with an input clock which is derived from the cpu clock via a programmable prescaler. the count direction (up/down) for each timer is programmable by software. concatenation of the timers is supported via the output toggle latch (t6otl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, or it may be output on a port pin (t6out). the overflows/underflows of timer t6 can additionally be used to clock the capcom timers t0 or t1, and to cause a reload from the caprel register. the caprel register may capture the contents of timer t5 based on an external signal transition on the corresponding port pin (capin), and timer t5 may optionally be cleared after the capture procedure. this allows absolute time differences to be measured or pulse multiplication to be performed without software overhead. a/d converter for analog signal measurement, a 10-bit a/d converter with 10 multiplexed input channels and a sample and hold circuit has been integrated on-chip. it uses the method of successive approximation. the sample time (for loading the capacitors) and the conversion time adds up to 9.7 us @ 20 mhz cpu clock. overrun error detection/protection is provided for the conversion result register (addat): an interrupt request will be generated when the result of a previous conversion has not been read from the result register at the time the next conversion is complete. for applications which require less than 10 analog input channels, the remaining channel inputs can be used as digital input port pins. the a/d converter of the sab 80c166 supports four different conversion modes. in the standard single channel conversion mode, the analog level on a specified channel is sampled once and converted to a digital result. in the single channel continuous mode, the analog level on a specified channel is repeatedly sampled and converted without software intervention. in the auto scan mode, the analog levels on a prespecified number of channels are sequentially sampled and converted. in the auto scan continuous mode, the number of prespecified channels is repeatedly sampled and converted. the peripheral event controller (pec) may be used to automatically store the conversion results into a table in memory for later evaluation, without requiring the overhead of entering and exiting interrupt routines for each data transfer.
sab 80c166/83c166 semiconductor group 20 parallel ports the sab 80c166 provides up to 76 i/o lines which are organized into five input/output ports and one input port. all port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. the i/o ports are true bidirectional ports which are switched to high impedance state when configured as inputs. during the internal reset, all port pins are configured as inputs. all port lines have programmable alternate input or output functions associated with them. port 0 and port 1 may be used as address and data lines when accessing external memory, while port 4 outputs the additional segment address bits a17/a16 in systems where segmentation is enabled to access more than 64 kbytes of memory. port 2 is associated with the capture inputs or compare outputs of the capcom unit and/or with optional bus arbitration signals (breq , hlda , hold ). port 3 includes alternate functions of timers, serial interfaces, optional bus control signals (wr , bhe , ready ) and the system clock output (clkout). port 5 is used for the analog input channels to the a/d converter. all port lines that are not used for these alternate functions may be used as general purpose i/o lines. serial channels serial communication with other microcontrollers, processors, terminals or external peripheral components is provided by two serial interfaces with identical functionality, asynchronous/ synchronous serial channels asc0 and asc1. they are upward compatible with the serial ports of the siemens sab 8051x microcontroller family and support full-duplex asynchronous communication up to 625 kbaud and half-duplex synchronous communication up to 2.5 mbaud @ 20 mhz cpu clock. two dedicated baud rate generators allow to set up all standard baud rates without oscillator tuning. for transmission, reception, and erroneous reception 3 separate interrupt vectors are provided for each serial channel. in asynchronous mode, 8- or 9-bit data frames are transmitted or received, preceded by a start bit and terminated by one or two stop bits. for multiprocessor communication, a mechanism to distinguish address from data bytes has been included (8-bit data + wake up bit mode). in synchronous mode one data byte is transmitted or received synchronously to a shift clock which is generated by the sab 80c166. a loop back option is available for testing purposes. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. a parity bit can automatically be generated on transmission or be checked on reception. framing error detection allows to recognize data frames with missing stop bits. an overrun error will be generated, if the last character received has not been read out of the receive buffer register at the time the reception of a new character is complete.
sab 80c166/83c166 semiconductor group 21 watchdog timer the watchdog timer represents one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. the watchdog timer is always enabled after a reset of the chip, and can only be disabled in the time interval until the einit (end of initialization) instruction has been executed. thus, the chip? start-up procedure is always monitored. the software has to be designed to service the watchdog timer before it overflows. if, due to hardware or software related failures, the software fails to do so, the watchdog timer overflows and generates an internal hardware reset and pulls the rstout pin low in order to allow external hardware components to be reset. the watchdog timer is a 16-bit timer, clocked with the cpu clock divided either by 2 or by 128. the high byte of the watchdog timer register can be set to a prespecified reload value (stored in wdtrel) in order to allow further variation of the monitored time interval. each time it is serviced by the application software, the high byte of the watchdog timer is reloaded. thus, time intervals between 25 m s and 420 ms can be monitored (@ 20 mhz cpu clock). the default watchdog timer interval after reset is 6.55 ms (@ 20 mhz cpu clock). bootstrap loader the sab 80c166 provides a built-in bootstrap loader (bsl), which allows to start program execution out of the sab 80c166? internal ram. the program to be started is loaded via the serial interface asc0 and does not require external memory or an internal rom. the sab 80c166 enters bsl mode, when ale is sampled high at the end of a hardware reset and if nmi becomes active directly after the end of the internal reset sequence. bsl mode is entered independent of the bus mode selected via ebc0, ebc1 and busact . after entering bsl mode the sab 80c166 scans the rxd0 line to receive a zero byte, i.e. one start bit, eight ??data bits and one stop bit. from the duration of this zero byte it calculates the corresponding baudrate factor with respect to the current cpu clock and initializes asc0 accordingly. using this baudrate, an acknowledge byte is returned to the host that provides the loaded data. the sab 80c166 returns the value <55 h >. the next 32 bytes received via asc0 are stored sequentially into locations 0fa40 h through 0fa5f h of the internal ram. to execute the loaded code the bsl then jumps to location 0fa40 h . the loaded program may load additional code / data, change modes, etc. the sab 80c166 exits bsl mode upon a software reset (ignores the ale level) or a hardware reset (remove conditions for entering bsl mode before).
sab 80c166/83c166 semiconductor group 22 instruction set summary the table below lists the instructions of the sab 80c166 in a condensed way. the various addressing modes that can be used with a specific instruction, the operation of the instructions, parameters for conditional execution of instructions, and the opcodes for each instruction can be found in the ?16x family instruction set manual . this document also provides a detailed description of each instruction. instruction set summary mnemonic description bytes add(b) add word (byte) operands 2 / 4 addc(b) add word (byte) operands with carry 2 / 4 sub(b) subtract word (byte) operands 2 / 4 subc(b) subtract word (byte) operands with carry 2 / 4 mul(u) (un)signed multiply direct gpr by direct gpr (16-16-bit) 2 div(u) (un)signed divide register mdl by direct gpr (16-/16-bit) 2 divl(u) (un)signed long divide reg. md by direct gpr (32-/16-bit) 2 cpl(b) complement direct word (byte) gpr 2 neg(b) negate direct word (byte) gpr 2 and(b) bitwise and, (word/byte operands) 2 / 4 or(b) bitwise or, (word/byte operands) 2 / 4 xor(b) bitwise xor, (word/byte operands) 2 / 4 bclr clear direct bit 2 bset set direct bit 2 bmov(n) move (negated) direct bit to direct bit 4 band, bor, bxor and/or/xor direct bit with direct bit 4 bcmp compare direct bit to direct bit 4 bfldh/l bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 cmp(b) compare word (byte) operands 2 / 4 cmpd1/2 compare word data to gpr and decrement gpr by 1/2 2 / 4 cmpi1/2 compare word data to gpr and increment gpr by 1/2 2 / 4 prior determine number of shift cycles to normalize direct word gpr and store result in direct word gpr 2 shl / shr shift left/right direct word gpr 2 rol / ror rotate left/right direct word gpr 2 ashr arithmetic (sign bit) shift right direct word gpr 2
sab 80c166/83c166 semiconductor group 23 mov(b) move word (byte) data 2 / 4 movbs move byte operand to word operand with sign extension 2 / 4 movbz move byte operand to word operand. with zero extension 2 / 4 jmpa, jmpi, jmpr jump absolute/indirect/relative if condition is met 4 jmps jump absolute to a code segment 4 j(n)b jump relative if direct bit is (not) set 4 jbc jump relative and clear bit if direct bit is set 4 jnbs jump relative and set bit if direct bit is not set 4 calla, calli, callr call absolute/indirect/relative subroutine if condition is met 4 calls call absolute subroutine in any code segment 4 pcall push direct word register onto system stack and call absolute subroutine 4 trap call interrupt service routine via immediate trap number 2 push, pop push/pop direct word register onto/from system stack 2 scxt push direct word register onto system stack and update register with word operand 4 ret return from intra-segment subroutine 2 rets return from inter-segment subroutine 2 retp return from intra-segment subroutine and pop direct word register from system stack 2 reti return from interrupt service subroutine 2 srst software reset 4 idle enter idle mode 4 pwrdn enter power down mode (supposes nmi -pin being low) 4 srvwdt service watchdog timer 4 diswdt disable watchdog timer 4 einit signify end-of-initialization on rstout-pin 4 nop null operation 2 instruction set summary (cont?) mnemonic description bytes
sab 80c166/83c166 semiconductor group 24 special function registers overview the following table lists all sfrs which are implemented in the sab 80c166 in alphabetical order. bit-addressable sfrs are marked with the letter b ?in column ?ame? an sfr can be specified via its individual mnemonic name. depending on the selected addressing mode, an sfr can be accessed via its physical address (using the data page pointers), or via its short 8-bit address (without using the data page pointers). special function registers overview name physical address 8-bit address description reset value adcic b ff98 h cc h a/d converter end of conversion interrupt control register 0000 h adcon b ffa0 h d0 h a/d converter control register 0000 h addat fea0 h 50 h a/d converter result register 0000 h addrsel1 fe18 h 0c h address select register 1 0000 h adeic b ff9a h cd h a/d converter overrun error interrupt control register 0000 h buscon1 b ff14 h 8a h bus configuration register 1 0000 h caprel fe4a h 25 h gpt2 capture/reload register 0000 h cc0 fe80 h 40 h capcom register 0 0000 h cc0ic b ff78 h bc h capcom register 0 interrupt control register 0000 h cc1 fe82 h 41 h capcom register 1 0000 h cc1ic b ff7a h bd h capcom register 1 interrupt control register 0000 h cc2 fe84 h 42 h capcom register 2 0000 h cc2ic b ff7c h be h capcom register 2 interrupt control register 0000 h cc3 fe86 h 43 h capcom register 3 0000 h cc3ic b ff7e h bf h capcom register 3 interrupt control register 0000 h cc4 fe88 h 44 h capcom register 4 0000 h cc4ic b ff80 h c0 h capcom register 4 interrupt control register 0000 h cc5 fe8a h 45 h capcom register 5 0000 h cc5ic b ff82 h c1 h capcom register 5 interrupt control register 0000 h cc6 fe8c h 46 h capcom register 6 0000 h cc6ic b ff84 h c2 h capcom register 6 interrupt control register 0000 h cc7 fe8e h 47 h capcom register 7 0000 h
sab 80c166/83c166 semiconductor group 25 cc7ic b ff86 h c3 h capcom register 7 interrupt control register 0000 h cc8 fe90 h 48 h capcom register 8 0000 h cc8ic b ff88 h c4 h capcom register 8 interrupt control register 0000 h cc9 fe92 h 49 h capcom register 9 0000 h cc9ic b ff8a h c5 h capcom register 9 interrupt control register 0000 h cc10 fe94 h 4a h capcom register 10 0000 h cc10ic b ff8c h c6 h capcom register 10 interrupt control register 0000 h cc11 fe96 h 4b h capcom register 11 0000 h cc11ic b ff8e h c7 h capcom register 11 interrupt control register 0000 h cc12 fe98 h 4c h capcom register 12 0000 h cc12ic b ff90 h c8 h capcom register 12 interrupt control register 0000 h cc13 fe9a h 4d h capcom register 13 0000 h cc13ic b ff92 h c9 h capcom register 13 interrupt control register 0000 h cc14 fe9c h 4e h capcom register 14 0000 h cc14ic b ff94 h ca h capcom register 14 interrupt control register 0000 h cc15 fe9e h 4f h capcom register 15 0000 h cc15ic b ff96 h cb h capcom register 15 interrupt control register 0000 h ccm0 b ff52 h a9 h capcom mode control register 0 0000 h ccm1 b ff54 h aa h capcom mode control register 1 0000 h ccm2 b ff56 h ab h capcom mode control register 2 0000 h ccm3 b ff58 h ac h capcom mode control register 3 0000 h cp fe10 h 08 h cpu context pointer register fc00 h cric b ff6a h b5 h gpt2 caprel interrupt control register 0000 h csp fe08 h 04 h cpu code segment pointer register (2 bits, read only) 0000 h dp0 b ff02 h 81 h port 0 direction control register 0000 h dp1 b ff06 h 83 h port 1 direction control register 0000 h dp2 b ffc2 h e1 h port 2 direction control register 0000 h dp3 b ffc6 h e3 h port 3 direction control register 0000 h dp4 b ff0a h 85 h port 4 direction control register (2 bits) 00 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166/83c166 semiconductor group 26 dpp0 fe00 h 00 h cpu data page pointer 0 register (4 bits) 0000 h dpp1 fe02 h 01 h cpu data page pointer 1 register (4 bits) 0001 h dpp2 fe04 h 02 h cpu data page pointer 2 register (4 bits) 0002 h dpp3 fe06 h 03 h cpu data page pointer 3 register (4 bits) 0003 h mdc b ff0e h 87 h cpu multiply / divide control register 0000 h mdh fe0c h 06 h cpu multiply / divide register ?high word 0000 h mdl fe0e h 07 h cpu multiply / divide register ?low word 0000 h ones ff1e h 8f h constant value 1? register (read only) ffff h p0 b ff00 h 80 h port 0 register 0000 h p1 b ff04 h 82 h port 1 register 0000 h p2 b ffc0 h e0 h port 2 register 0000 h p3 b ffc4 h e2 h port 3 register 0000 h p4 b ffc8 h e4 h port 4 register (2 bits) 00 h p5 b ffa2 h d1 h port 5 register (read only) xxxx h pecc0 fec0 h 60 h pec channel 0 control register 0000 h pecc1 fec2 h 61 h pec channel 1 control register 0000 h pecc2 fec4 h 62 h pec channel 2 control register 0000 h pecc3 fec6 h 63 h pec channel 3 control register 0000 h pecc4 fec8 h 64 h pec channel 4 control register 0000 h pecc5 feca h 65 h pec channel 5 control register 0000 h pecc6 fecc h 66 h pec channel 6 control register 0000 h pecc7 fece h 67 h pec channel 7 control register 0000 h psw b ff10 h 88 h cpu program status word 0000 h s0bg feb4 h 5a h serial channel 0 baud rate generator reload register 0000 h s0con b ffb0 h d8 h serial channel 0 control register 0000 h s0eic b ff70 h b8 h serial channel 0 error interrupt control register 0000 h s0rbuf feb2 h 59 h serial channel 0 receive buffer register (read only) xx h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166/83c166 semiconductor group 27 s0ric b ff6e h b7 h serial channel 0 receive interrupt control register 0000 h s0tbuf feb0 h 58 h serial channel 0 transmit buffer register (write only) 00 h s0tic b ff6c h b6 h serial channel 0 transmit interrupt control register 0000 h s1bg febc h 5e h serial channel 1 baud rate generator reload register 0000 h s1con b ffb8 h dc h serial channel 1 control register 0000 h s1eic b ff76 h bb h serial channel 1 error interrupt control register 0000 h s1rbuf feba h 5d h serial channel 1 receive buffer register (read only) xx h s1ric b ff74 h ba h serial channel 1 receive interrupt control register 0000 h s1tbuf feb8 h 5c h serial channel 1 transmit buffer register (write only) 00 h s1tic b ff72 h b9 h serial channel 1 transmit interrupt control register 0000 h sp fe12 h 09 h cpu system stack pointer register fc00 h stkov fe14 h 0a h cpu stack overflow pointer register fa00 h stkun fe16 h 0b h cpu stack underflow pointer register fc00 h syscon b ff0c h 86 h cpu system configuration register 0xx0 h *) t0 fe50 h 28 h capcom timer 0 register 0000 h t01con b ff50 h a8 h capcom timer 0 and timer 1 control register 0000 h t0ic b ff9c h ce h capcom timer 0 interrupt control register 0000 h t0rel fe54 h 2a h capcom timer 0 reload register 0000 h t1 fe52 h 29 h capcom timer 1 register 0000 h t1ic b ff9e h cf h capcom timer 1 interrupt control register 0000 h t1rel fe56 h 2b h capcom timer 1 reload register 0000 h t2 fe40 h 20 h gpt1 timer 2 register 0000 h t2con b ff40 h a0 h gpt1 timer 2 control register 0000 h t2ic b ff60 h b0 h gpt1 timer 2 interrupt control register 0000 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166/83c166 semiconductor group 28 *) the system configuration is selected during reset. t3 fe42 h 21 h gpt1 timer 3 register 0000 h t3con b ff42 h a1 h gpt1 timer 3 control register 0000 h t3ic b ff62 h b1 h gpt1 timer 3 interrupt control register 0000 h t4 fe44 h 22 h gpt1 timer 4 register 0000 h t4con b ff44 h a2 h gpt1 timer 4 control register 0000 h t4ic b ff64 h b2 h gpt1 timer 4 interrupt control register 0000 h t5 fe46 h 23 h gpt2 timer 5 register 0000 h t5con b ff46 h a3 h gpt2 timer 5 control register 0000 h t5ic b ff66 h b3 h gpt2 timer 5 interrupt control register 0000 h t6 fe48 h 24 h gpt2 timer 6 register 0000 h t6con b ff48 h a4 h gpt2 timer 6 control register 0000 h t6ic b ff68 h b4 h gpt2 timer 6 interrupt control register 0000 h tfr b ffac h d6 h trap flag register 0000 h wdt feae h 57 h watchdog timer register (read only) 0000 h wdtcon ffae h d7 h watchdog timer control register 0000 h zeros b ff1c h 8e h constant value 0? register (read only) 0000 h special function registers overview (contd) name physical address 8-bit address description reset value
sab 80c166/83c166 semiconductor group 29 absolute maximum ratings ambient temperature under bias ( t a ): sab 83c166-5m, sab 80c166-m.................................................................................. 0 to + 70 ?c sab 83c166-5m-t3, sab 80c166-m-t3 .................................................................. ?40 to + 85 ?c storage temperature ( t st ) ....................................................................................... ?65 to + 150 ?c voltage on v cc pins with respect to ground ( v ss ) ..................................................... ?0.5 to + 6.5 v voltage on any pin with respect to ground ( v ss ) .................................................?0.5 to v cc + 0.5 v input current on any pin during overload condition.................................................. ?10 to + 10 ma absolute sum of all input currents during overload condition ..............................................|100 ma| power dissipation.............................................................................................................. .......... 1 w note: stresses above those listed under ?bsolute maximum ratings?may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during overload conditions ( v in > v cc or v in < v ss ) the voltage on pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. parameter interpretation the parameters listed in the following partly represent the characteristics of the sab 80c166 and partly its demands on the system. to aid in interpreting the parameters right, when evaluating them for a design, they are marked in column ?ymbol? cc ( c ontroller c haracteristics): the logic of the sab 80c166 will provide signals with the respective timing characteristics. sr ( s ystem r equirement): the external system must provide signals with the respective timing characteristics to the sab 80c166.
sab 80c166/83c166 semiconductor group 30 dc characteristics v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 parameter symbol limit values unit test condition min. max. input low voltage v il sr ?0.5 0.2 v cc ?0.1 v input high voltage (all except rstin and xtal1) v ih sr 0.2 v cc + 0.9 v cc + 0.5 v input high voltage rstin v ih1 sr 0.6 v cc v cc + 0.5 v input high voltage xtal1 v ih2 sr 0.7 v cc v cc + 0.5 v output low voltage (port 0, port 1, port 4, ale, rd , wr , bhe , clkout, rstout ) v ol cc 0.45 v i ol = 2.4 ma output low voltage (all other outputs) v ol1 cc 0.45 v i ol1 = 1.6 ma output high voltage (port 0, port 1, port 4, ale, rd , wr , bhe , clkout, rstout ) v oh cc 0.9 v cc 2.4 ? i oh = ?500 m a i oh = ?2.4 ma output high voltage (all other outputs) v oh1 cc 0.9 v cc 2.4 ? v i oh = ?250 m a i oh = ?1.6 ma input leakage current (port 5) 1) i oz1 cc 200 na 0 v < v in < v cc input leakage current (all other) i oz2 cc 500 na 0 v < v in < v cc rstin pullup resistor r rst cc 50 150 k w read inactive current 4) i rh 2) -40 m a v out = v ohmin read active current 4) i rl 3) -500 m a v out = v olmax ale inactive current 4) i alel 2) 150 m a v out = v olmax ale active current 4) i aleh 3) 2100 m a v out = v ohmin xtal1 input current i il cc 20 m a 0 v < v in < v cc pin capacitance 5) (digital inputs/outputs) c io cc 10 pf f = 1 mhz t a = 25 ?c power supply current i cc 50 + 5 * f cpu ma reset active f cpu in [mhz] 6) idle mode supply current i id 30 + 1.5 * f cpu ma f cpu in [mhz] 6) power-down mode supply current i pd ?0 m a v cc = 5.5 v 7)
sab 80c166/83c166 semiconductor group 31 notes 1) this specification does not apply to the analog input (port 5.x) which is currently converted. 2) the maximum current may be drawn while the respective signal line remains inactive. 3) the minimum current must be drawn in order to drive the respective signal line active. 4) this specification is only valid during reset, or during hold-mode. 5) not 100% tested, guaranteed by design characterization. 6) the supply current is a function of the operating frequency. this dependency is illustrated in the figure below. these parameters are tested at v ccmax and 20 mhz cpu clock with all outputs open. 7) all inputs (including pins configured as inputs) at 0 v to 0.1 v or at v cc ?0.1 v to v cc , v ref = 0 v, all outputs (including pins configured as outputs) disconnected. a voltage of v cc 3 2.5 v is sufficient to retain the content of the internal ram during power down mode. figure 8 supply/idle current as a function of operating frequency
sab 80c166/83c166 semiconductor group 32 a/d converter characteristics v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 4.0 v v aref v cc +0.1 v; v ss -0.1 v v agnd v ss +0.2 v notes 1) v ain may exceed v agnd or v aref up to the absolute maximum ratings. however, the conversion result in these cases will be x000 h or x3ff h , respectively. 2) during the sample time the input capacitance c i can be charged/discharged by the external source. the internal resistance of the analog source must allow the capacitors to reach their final voltage level within t s . after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. the value for the sample clock is t sc = tcl * 32. 3) this parameter includes the sample time t s , the time for determining the digital result and the time to load the result register with the conversion result. the value for the conversion clock is t cc = tcl * 32. 4) this parameter depends on the adc control logic. it is not a real maximum value, but rather a fixum. 5) tue is tested at v aref = 5.0v, v agnd = 0 v, v cc = 4.8 v. it is guaranteed by design characterization for all other voltages within the defined voltage range. 6) during the conversion the adc? capacitance must be repeatedly charged or discharged. the internal resistance of the reference voltage source must allow the capacitors to reach their respective voltage level within t cc . the maximum internal resistance results from the cpu clock period. 7) not 100% tested, guaranteed by design characterization. parameter symbol limit values unit test condition min. max. analog input voltage range v ain sr v agnd v aref v 1) sample time t s cc 2 t sc 2) 4) conversion time t c cc 10 t cc + t s + 4tcl 3) 4) total unadjusted error tue cc 2 lsb 5) internal resistance of reference voltage source r aref sr t cc / 250 - 0.25 k w t cc in [ns] 6) 7) internal resistance of analog source r asrc sr t s / 500 - 0.25 k w t s in [ns] 2) 7) adc input capacitance c ain cc 50 pf 7)
sab 80c166/83c166 semiconductor group 33 testing waveforms figure 9 input output waveforms figure 10 float waveforms ac inputs during testing are driven at 2.4 v for a logic ??and 0.4 v for a logic ?? timing measurements are made at v ih min for a logic ??and v il max for a logic ?? for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs, but begins to float when a 100 mv change from the loaded v oh / v ol level occurs ( i oh / i ol = 20 ma).
sab 80c166/83c166 semiconductor group 34 ac characteristics external clock drive xtal1 v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 figure 11 external clock drive xtal1 memory cycle variables the timing tables below use three variables which are derived from registers syscon and buscon1 and represent the special characteristics of the programmed memory cycle. the following table describes, how these variables are to be computed. parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. oscillator period tcl sr 25 25 25 500 ns high time t 1 sr66?s low time t 2 sr66?s rise time t 3 sr5?ns fall time t 4 sr5?ns description symbol values ale extension t a tcl * memory cycle time waitstates t c 2tcl * (15 - ) memory tristate time t f 2tcl * (1 - )
sab 80c166/83c166 semiconductor group 35 ac characteristics (cont?) multiplexed bus v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 c l (for port 0, port 1, port 4, ale, rd , wr , bhe , clkout) = 100 pf ale cycle time = 6 tcl + 2 t a + t c + t f (150 ns at 20-mhz cpu clock without waitstates) parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a tcl - 10 + t a ?s address setup to ale t 6 cc 10 + t a tcl - 15 + t a ?s address hold after ale t 7 cc 15 + t a tcl - 10 + t a ?s ale falling edge to rd , wr (with rw-delay) t 8 cc 15 + t a tcl - 10 + t a ?s ale falling edge to rd , wr (no rw-delay) t 9 cc -10 + t a -10 + t a ?s address float after rd , wr (with rw-delay) t 10 cc5?ns address float after rd , wr (no rw-delay) t 11 cc 30 tcl + 5 ns rd , wr low time (with rw-delay) t 12 cc 40 + t c 2tcl - 10 + t c ?s rd wr low time (no rw-delay) t 13 cc 65 + t c 3tcl - 10 + t c ?s rd to valid data in (with rw-delay) t 14 sr 30 + t c 2tcl - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr 55 + t c 3tcl - 20 + t c ns ale low to valid data in t 16 sr 55 + t a + t c 3tcl - 20 + t a + t c ns address to valid data in t 17 sr 75 + 2 t a + t c 4tcl - 25 + 2 t a + t c ns data hold after rd rising edge t 18 sr00?s data float after rd t 19 sr 35 + t f 2tcl - 15 + t f ns data valid to wr t 22 cc 35 + t c 2tcl - 15 + t c ?s
sab 80c166/83c166 semiconductor group 36 data hold after wr t 23 cc 35 + t f 2tcl - 15 + t f ?s ale rising edge after rd , wr t 25 cc 35 + t f 2tcl - 15 + t f ?s address hold after rd , wr t 27 cc 35 + t f 2tcl - 15 + t f ?s parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max.
sab 80c166/83c166 semiconductor group 37 figure 12-1 external memory cycle: multiplexed bus, with read/write delay, normal ale bus read cycle rd data in data out address address t 10 address ale a17-a16 (a15-a8) bhe bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 14 t 12 t 10 t 22 t 23 t 12 t 8 t 8
sab 80c166/83c166 semiconductor group 38 figure 12-2 external memory cycle: multiplexed bus, with read/write delay, extended ale data out address data in address t 10 address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 14 t 12 t 10 t 22 t 23 t 12 t 8 t 8
sab 80c166/83c166 semiconductor group 39 figure 12-3 external memory cycle: multiplexed bus, no read/write delay, normal ale data out address address data in address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 15 t 13 t 22 t 23 t 13 t 9 t 9 t 11 t 11
sab 80c166/83c166 semiconductor group 40 figure 12-4 external memory cycle: multiplexed bus, no read/write delay, extended ale data out address data in address address ale a17-a16 (a15-a8) bhe bus read cycle rd bus write cycle wr t 5 t 16 t 17 t 6 t 7 t 25 t 27 t 18 t 19 t 15 t 13 t 22 t 23 t 13 t 9 t 9 t 11 t 11
sab 80c166/83c166 semiconductor group 41 ac characteristics (cont?) demultiplexed bus v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 c l (for port 0, port 1, port 4, ale, rd , wr , bhe , clkout) = 100 pf ale cycle time = 4 tcl + 2 t a + t c + t f (100 ns at 20-mhz cpu clock without waitstates) parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. ale high time t 5 cc 15 + t a tcl - 10 + t a ?s address setup to ale t 6 cc 10 + t a tcl - 15 + t a ?s ale falling edge to rd , wr (with rw-delay) t 8 cc 15 + t a tcl - 10 + t a ?s ale falling edge to rd , wr (no rw-delay) t 9 cc -10 + t a -10 + t a ?s rd , wr low time (with rw-delay) t 12 cc 40 + t c 2tcl - 10 + t c ?s rd , wr low time (no rw-delay) t 13 cc 65 + t c 3tcl - 10 + t c ?s rd to valid data in (with rw-delay) t 14 sr 30 + t c 2tcl - 20 + t c ns rd to valid data in (no rw-delay) t 15 sr 55 + t c 3tcl - 20 + t c ns ale low to valid data in t 16 sr 55 + t a + t c 3tcl - 20 + t a + t c ns address to valid data in t 17 sr 75 + 2 t a + t c 4tcl - 25 + 2 t a + t c ns data hold after rd rising edge t 18 sr00?s data float after rd rising edge (with rw-delay) t 20 sr 35 + t f 2tcl - 15 + t f ns data float after rd rising edge (no rw-delay) t 21 sr 15 + t f tcl - 10 + t f ns data valid to wr t 22 cc 35 + t c 2tcl - 15 + t c ?s data hold after wr t 24 cc 15 + t f tcl - 10 + t f ?s
sab 80c166/83c166 semiconductor group 42 ale rising edge after rd , wr t 26 cc -10 + t f -10 + t f ?s address hold after rd , wr t 28 cc 0 + t f ? + t f ?s parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max.
sab 80c166/83c166 semiconductor group 43 figure 13-1 external memory cycle: demultiplexed bus, with read/write delay, normal ale data out data in address ale a17-a16 a15-a0 bhe bus (d15-d8) d7-d0 read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 20 t 14 t 12 t 22 t 24 t 12 t 8 t 8 bus (d15-d8) d7-d0 wr
sab 80c166/83c166 semiconductor group 44 figure 13-2 external memory cycle: demultiplexed bus, with read/write delay, extended ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 20 t 14 t 12 t 22 t 24 t 12 t 8 t 8 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr
sab 80c166/83c166 semiconductor group 45 figure 13-3 external memory cycle: demultiplexed bus, no read/write delay, normal ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 21 t 15 t 13 t 22 t 24 t 13 t 9 t 9 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0 wr
sab 80c166/83c166 semiconductor group 46 figure 13-4 external memory cycle: demultiplexed bus, no read/write delay, extended ale data out data in address ale a17-a16 a15-a0 bhe read cycle rd write cycle wr t 5 t 16 t 17 t 6 t 26 t 28 t 18 t 21 t 15 t 13 t 22 t 24 t 13 t 9 t 9 bus (d15-d8) d7-d0 bus (d15-d8) d7-d0
sab 80c166/83c166 semiconductor group 47 ac characteristics (cont?) clkout and ready v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 c l (for port 0, port 1, port 4, ale, rd , wr , bhe , clkout) = 100 pf notes 1) these timings are given for test purposes only, in order to assure recognition at a specific clock edge. 2) demultiplexed bus is the worst case. for multiplexed bus 2tcl are to be added to the maximum values. this adds even more time for deactivating ready . parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. clkout cycle time t 29 cc 50 50 2tcl 2tcl ns clkout high time t 30 cc 20 tcl ?5 ns clkout low time t 31 cc 15 tcl ?10 ns clkout rise time t 32 cc5?ns clkout fall time t 33 cc5?ns clkout rising edge to ale falling edge t 34 cc 0 + t a 10 + t a 0 + t a 10 + t a ns synchronous ready setup time to clkout t 35 sr 10 10 ns synchronous ready hold time after clkout t 36 sr 10 10 ns asynchronous ready low time t 37 sr 65 2tcl + 15 ns asynchronous ready setup time 1) t 58 sr 20 20 ns asynchronous ready hold time 1) t 59 sr00?s async. ready hold time after rd , wr high (demultiplexed bus) 2) t 60 sr 0 0 + 2 t a + t f 2) 0 tcl - 25 + 2 t a + t f 2) ns
sab 80c166/83c166 semiconductor group 48 figure 14 clkout and ready notes 1) cycle as programmed, including mctc waitstates (example shows 0 mctc ws). 2) the leading edge of the respective command depends on rw-delay. 3) ready sampled high at this sampling point generates a ready controlled waitstate, ready sampled low at this sampling point terminates the currently running bus cycle. 4) ready may be deactivated in response to the trailing (rising) edge of the corresponding command (rd or wr ). 5) if the asynchronous ready signal does not fulfill the indicated setup and hold times with respect to clkout (e.g. because clkout is not enabled), it must fulfill t 37 in order to be safely synchronized. this is guaranteed, if ready is removed in response to the command (see note 4) ). 6) multiplexed bus modes have a mux waitstate added after a bus cycle, and an additional mttc waitstate may be inserted here. for a multiplexed bus with mttc waitstate this delay is 2 clkout cycles, for a demultiplexed bus without mttc waitstate this delay is zero. 7) the next external bus cycle may start here. clkout ale t 30 t 34 sync ready t 35 t 36 t 35 t 36 async ready t 58 t 59 t 58 t 59 waitstate ready mux/tristate 6) t 32 t 33 t 29 running cycle 1) t 31 t 37 3) 3) 5) command rd, wr t 60 4) see 6) 2) 7) 3) 3)
sab 80c166/83c166 semiconductor group 49 ac characteristics (cont?) external bus arbitration v cc = 5 v 10 %; v ss = 0 v t a = 0 to +70 ?c for sab 83c166-5m, sab 80c166-m t a = -40 to +85 ?c for sab 83c166-5m-t3, sab 80c166-m-t3 c l (for port 0, port 1, port 4, ale, rd , wr , bhe , clkout) = 100 pf parameter symbol max. cpu clock = 20 mhz variable cpu clock 1/2tcl = 1 to 20 mhz unit min. max. min. max. hold input setup time to clkout t 61 sr 20 20 ns clkout to hlda high or breq low delay t 62 cc 50 50 ns clkout to hlda low or breq high delay t 63 cc 50 50 ns other signals release t 66 cc 25 25 ns other signals drive t 67 cc -5 35 -5 35 ns
sab 80c166/83c166 semiconductor group 50 figure 15 external bus arbitration, releasing the bus notes 1) the sab 80c166 will complete the currently running bus cycle before granting bus access. 2) this is the first possibility for breq to get active. clkout hold t 61 hlda t 63 other signals t 66 1) 1) 2) breq t 62
sab 80c166/83c166 semiconductor group 51 figure 16 external bus arbitration, (regaining the bus) notes 1) this is the last chance for breq to trigger the indicated regain-sequence. even if breq is activated earlier, the regain-sequence is initiated by hold going high. please note that hold may also be deactivated without the sab 80c166 requesting the bus. 2) the next sab 80c166 driven bus cycle may start here clkout hold hlda other signals t 62 t 67 t 62 1) 2) t 61 breq t 63 t 62


▲Up To Search▲   

 
Price & Availability of Q67121-C848

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X